]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Don't propagate button-release-event in _onCornerClicked()
authorRui Matos <tiagomatos@gmail.com>
Thu, 5 May 2011 15:09:07 +0000 (16:09 +0100)
committerDan Winship <danw@gnome.org>
Thu, 19 May 2011 16:09:01 +0000 (12:09 -0400)
Since both the hot corner's ClutterGroup and the hot corner's
ClutterRectangle button-release-event is connected to
_onCornerClicked() we must handle it there by returning 'true' to
Clutter or else _onCornerClicked() is called twice which defeats the
HOT_CORNER_ACTIVATION_TIMEOUT logic.

https://bugzilla.gnome.org/show_bug.cgi?id=649427

js/ui/panel.js

index 6a24ac99d29e1d250fe923f2cec726c1cb9160c0..64235eda0184e87e28f6870b8e0e494b9cee16b8 100644 (file)
@@ -776,7 +776,7 @@ HotCorner.prototype = {
     _onCornerClicked : function() {
          if (!Main.overview.animationInProgress)
              this.maybeToggleOverviewOnClick();
-         return false;
+         return true;
     },
 
     _onCornerLeft : function(actor, event) {